package com.black.app.service.store;

import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.req.my.myorders.MyOrderAddReq;
import com.black.app.domain.req.my.myorders.MyOrdersEditReq;
import com.black.app.domain.req.my.myorders.MyOrdersQueryReq;
import com.black.app.domain.resp.my.myorders.MyOrdersQueryResp;
import com.black.app.domain.resp.my.myorders.UserOrderDetails;
import com.black.app.domain.resp.my.myorders.UserOrdersResp;
import com.black.app.domain.store.AppStoreOrders;
import com.github.pagehelper.PageInfo;

/**
* @author admin
* @description 针对表【app_store_orders】的数据库操作Service
* @createDate 2024-10-28 11:46:37
*/
public interface AppStoreOrdersService extends IService<AppStoreOrders> {

    //后台订单信息分页查询
    PageInfo<MyOrdersQueryResp> paginationQuery(MyOrdersQueryReq req);
    //用户订单列表
    PageInfo<UserOrdersResp> userOrderList(Long userId);
    //用户订单详情
    UserOrderDetails findByCode(String orderCode);
    //新增订单
    boolean add(MyOrderAddReq req);
    //修改订单
    boolean edit(MyOrdersEditReq req);
    //删除订单
    boolean deleteByCode(String[] orderCodes);
}
